var OriginTitile = document.title,
    titleTime;
document.addEventListener("visibilitychange",
    function () {
        if (document.hidden) {
            // $('[rel="shortcut icon"]').attr("href", "https://www.ihewro.com/usr/uploads/2020/02/863730882.jpg");
            document.title = "你快回来！";
            clearTimeout(titleTime)
        } else {
            // $('[rel="shortcut icon"]').attr("href", "https://www.ihewro.com/usr/uploads/2020/02/863730882.jpg");
            document.title = "(/≧▽≦/) 来了，老弟！";
            titleTime = setTimeout(function () {
                document.title = OriginTitile
            },2000)
        }
    }
);